package com.nidu.demo.company.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.company.mapper.dataobject.CompanyDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CompanyMapper extends BaseMapper<CompanyDO> {

    @Select("SELECT * FROM sys_company WHERE name = #{name} LIMIT 1")
    CompanyDO selectByName(String name);

}